package com.binson.consumers.controller;

import com.binson.common.core.domain.R;
import com.binson.common.model.AppModel;
import com.binson.consumers.appapi.AppPayService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/a")
public class PaySome {
    @Resource
    AppPayService appPayService;

    @GetMapping("/aa")
    @ResponseBody
    public R<?> test(AppModel appModel) throws Exception {
        return appPayService.test(appModel);
    }
    @GetMapping("/test2")
    public R<?> test2()  {
        return appPayService.test2();
    }
}
